#include <cstdio>
#include "vl_thread_pool.h"

using namespace VL;

int main(int argc, const char ** argv) {
	VLThreadPool pool(5, 5, 5);
	pool.initThreadPool();
	for(int i = 0 ; i < 20 ; i ++) {
		pool.exec<int, int>([i](const std::shared_ptr<VLFuture>& futrePtr) {
			printf("%d begin...\n", i);
		});
	}

	pool.waitForAllTaskDone();
	return 0;
}
